import numpy as np
import gaborplot as gp

pcaInv = np.load('inversePCA.npy')[:350]
basis = np.load('basis/basisnnTruelamb0.5comps350codes2800patches400000epochs16.npy');
#basis = np.load('icabasis/basisluisicacomps350codes2800patches400000.npy')

v1CResponses = np.dot(basis, pcaInv)

v1CResponses = v1CResponses.astype(np.float32)

for i in range(v1CResponses.shape[0]):
    	#gp.plotGabors(v1CResponses[i], 'icabasis/basisluisicacomps350codes2800patches400000/' + str(i) + '.png')
	gp.plotGabors(v1CResponses[i], 'basis/basisnnTruelamb0.5comps350codes2800patches400000epochs16/' + str(i) + '.png')
